
import net.optix.ip.model.ModelLocator;
[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

import net.optix.ip.vo.TradeMarkVO;
private var _mark:TradeMarkVO;

public function set mark(value:TradeMarkVO):void
{
	_mark	=	value;
	switch(model.role)
	{
		case 1:
			if(model.client.clientID == _mark.clientID)
			{
				this.label	=	"Assign the trademark to a law firm without requesting a bid";
				this.visible	=	true;
			}
			else
			{
				this.visible	=	false;
			}
			break;
		case 3:
			if(model.firm.firmID == _mark.firmID && _mark.bConfirm	== 0)
			{
				this.label	=	"Decline or accept the assignment";
				this.visible	=	true;
			}
			else
			{
				this.visible	=	false;
			}
			break;
		default:
			this.visible	=	false;
			break;
	}
}

public function get mark():TradeMarkVO
{
	return _mark;
}